from flask import Flask

import myproject.config as config

from myproject.pbin.views import blueprint as blueprint_pbin


app = Flask("myproject")
app.config.update(config.flask_config)

app.register_blueprint(blueprint_pbin, url_prefix="/pbin")


def main():
    app.run(config.web_ip, config.web_port)


if __name__ == "__main__":
    main()
